//
//  SwiftLableAnimationController.swift
//  SwiftTest
//
//  Created by 李江湖 on 2018/8/2.
//  Copyright © 2018年 李江湖. All rights reserved.
//

import UIKit

class SwiftLableAnimationController: UIViewController {
    fileprivate  var arr = ["九死一生","五湖四海","带你上天","绝对无敌","上善若水","凯旋归来","无理取闹"]
    
    @IBOutlet weak var label: LTMorphingLabel!
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    @IBAction func segmentedClick(_ sender: UISegmentedControl) {
        let seg = sender
        if let effect = LTMorphingEffect(rawValue: seg.selectedSegmentIndex) {
            label.morphingEffect = effect
            label.text = arr[seg.selectedSegmentIndex]
        }
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
